xen.git
19 years agoRemove unused import; library moved
Tom Wilkie [Wed, 28 Mar 2007 14:31:17 +0000 (15:31 +0100)]
Remove unused import; library moved

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agolinux pciback: Proper fix for build failure.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 14:01:24 +0000 (15:01 +0100)]
linux pciback: Proper fix for build failure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen: Sync the list.h macros to Linux 2.6.18.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:43:41 +0000 (14:43 +0100)]
xen: Sync the list.h macros to Linux 2.6.18.
This also pulls in RCU-related functions, superceding a patch from Mike Day.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Fix the pciback build (temporary hack).
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:42:54 +0000 (14:42 +0100)]
linux: Fix the pciback build (temporary hack).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[ACM] Allow version information to be embedded in the XML representation of
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:00:56 +0000 (14:00 +0100)]
[ACM] Allow version information to be embedded in the XML representation of
the ACM policy. The translation tool has been adapted to parse the
version found in the XML representation and put it into the binary
policy. Xen has been adapted to remember the version information and
report it when asked for the current policy.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoxenbus: check function return values of functions declared with
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:56:22 +0000 (13:56 +0100)]
xenbus: check function return values of functions declared with
__must_check post-2.6.18.

This implies completely suppressing frontend/backend operations if the
respective bus or device registration failed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agopciback: check function return values of functions declared with
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:55:01 +0000 (13:55 +0100)]
pciback: check function return values of functions declared with
__must_check post-2.6.18.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoRemove page_is_removable arch hook. Now the ia64 p2m semantic becomes
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:53:27 +0000 (13:53 +0100)]
Remove page_is_removable arch hook. Now the ia64 p2m semantic becomes
same as the x86 p2m table so that the hook is unnecessary any more.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agolinux evtchn: Read function in evtchn driver requires locking.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:52:03 +0000 (13:52 +0100)]
linux evtchn: Read function in evtchn driver requires locking.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix to let TCP server run without SSL installed.
Tom Wilkie [Wed, 28 Mar 2007 11:38:13 +0000 (12:38 +0100)]
Fix to let TCP server run without SSL installed.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years ago[linux] Fix xenbus device to allow replies larger than 4096 bytes.
Christian Limpach [Wed, 28 Mar 2007 10:01:58 +0000 (11:01 +0100)]
[linux] Fix xenbus device to allow replies larger than 4096 bytes.
Also fix reply_queue mutex across fragmented replies and for concurrent
readers.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:41:53 +0000 (10:41 +0100)]
Merge with xen-ia64-unstable.hg

19 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:38:41 +0000 (10:38 +0100)]
Merge with xen-ia64-unstable.hg

19 years ago[ioemu] Don't enable monitor or serial console on virtual consoles by default.
Christian Limpach [Wed, 28 Mar 2007 09:36:49 +0000 (10:36 +0100)]
[ioemu] Don't enable monitor or serial console on virtual consoles by default.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoEditing long lines in pygrub interactively could lead to tracebacks.
Tim Deegan [Wed, 28 Mar 2007 09:12:16 +0000 (09:12 +0000)]
Editing long lines in pygrub interactively could lead to tracebacks.
Attached patch fixes things.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years ago[ioemu] Revert 14585:3375391fb0c9 since this removes useful functionality.
Christian Limpach [Wed, 28 Mar 2007 09:05:37 +0000 (10:05 +0100)]
[ioemu] Revert 14585:3375391fb0c9 since this removes useful functionality.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoFix missing import.
Ewan Mellor [Wed, 28 Mar 2007 09:05:03 +0000 (10:05 +0100)]
Fix missing import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix diagnosis of unhandled exceptions.
Ewan Mellor [Wed, 28 Mar 2007 09:04:32 +0000 (10:04 +0100)]
Fix diagnosis of unhandled exceptions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 28 Mar 2007 08:44:08 +0000 (08:44 +0000)]
Merge

19 years ago[HVM][HAP] Fix up some memory allocation bugs
Tim Deegan [Wed, 28 Mar 2007 08:40:42 +0000 (08:40 +0000)]
[HVM][HAP] Fix up some memory allocation bugs

The attached patch initializes count_info of newly allocated hap page
with 0, and removes unnecessary page deallcation when destroying monitor
table. Without this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang (wei.huang2@amd.com)
19 years agoFix typo.
Ewan Mellor [Wed, 28 Mar 2007 00:09:14 +0000 (01:09 +0100)]
Fix typo.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded HTTPS support to Xend. There are new configuration options for the
Ewan Mellor [Tue, 27 Mar 2007 22:23:01 +0000 (23:23 +0100)]
Added HTTPS support to Xend.  There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded comment regarding a Python bug.
Ewan Mellor [Tue, 27 Mar 2007 22:03:32 +0000 (23:03 +0100)]
Added comment regarding a Python bug.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
Ewan Mellor [Tue, 27 Mar 2007 21:34:22 +0000 (22:34 +0100)]
Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py.  This means
that clients do not need to import swathes of server code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 18:21:48 +0000 (12:21 -0600)]
merge with xen-unstable.hg

19 years agoAdd auto-start and auto-stop functionality.
Ewan Mellor [Tue, 27 Mar 2007 15:52:56 +0000 (16:52 +0100)]
Add auto-start and auto-stop functionality.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUse the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
Ewan Mellor [Tue, 27 Mar 2007 15:33:26 +0000 (16:33 +0100)]
Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agohvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 18:05:48 +0000 (19:05 +0100)]
hvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:53:05 +0000 (18:53 +0100)]
hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
constructed under nested paging mode. It complies with recent
reset_to_realmode change in hvmloader.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
19 years agohvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:51:07 +0000 (18:51 +0100)]
hvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
the latter!).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix typo in VDB_metrics_methods in XenAPI
Tom Wilkie [Tue, 27 Mar 2007 16:43:36 +0000 (17:43 +0100)]
Fix typo in VDB_metrics_methods in XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years ago[IA64] Remove debugger calls from panic_domain()
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 15:07:51 +0000 (09:07 -0600)]
[IA64] Remove debugger calls from panic_domain()

These hang when compiled with crash_debug=y

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
19 years agoMake xm sysrq work via XenAPI re: PAUSED state problem
Tom Wilkie [Tue, 27 Mar 2007 14:47:02 +0000 (15:47 +0100)]
Make xm sysrq work via XenAPI re: PAUSED state problem

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agolinux/x86-64: cleanup the Xen-specific macros in entry-xen.S
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:23:33 +0000 (17:23 +0100)]
linux/x86-64: cleanup the Xen-specific macros in entry-xen.S

- SWITCH_TO_KERNEL is dead (and was broken)
- comments to HYPERVISOR_IRET were somewhat outdated
- updates of selecor RPLs shouldn't be done with byte size to avoid
  store-to-load forwarding issues

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvm svm: Bug fix for page allocation when HAP is being used
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:21:14 +0000 (17:21 +0100)]
hvm svm: Bug fix for page allocation when HAP is being used

Initialise count_info of newly allocated hap page with 0, and removes
unnecessary page deallcation when destroying monitor table. Without
this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
19 years agohvm: Fix undefined bit shifting in mmio emulation path
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:56:20 +0000 (16:56 +0100)]
hvm: Fix undefined bit shifting in mmio emulation path

In functions set_eflags_* (xen/arch/x86/hvm/io.c), if the first
argument "size" equals sizeof(long), the following code will produce
unintended and invalid result:
        unsigned long mask = (1 << (8 * size)) - 1;

In ANSI C, if the shift amount is greater or equal to the width of the
data type, the result is undefined. Specifically on x86, a bit mask is
applied to the shift amount, so that more significant bits are
ignored. So the above expression results 0x0 instead of the intended
~0UL.

This patch fixes this issue. Because size=0 is not a valid parameter,
rewriting the code using right shift avoids an additional condition
check.

Signed-off-by: Qing He <qing.he@intel.com>
19 years agoFix 'xm list' long output to skip legacy 'cpus'.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:45:37 +0000 (16:45 +0100)]
Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoxen: Remove legacy references to explicitly per-cpu perf counters.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:42:47 +0000 (16:42 +0100)]
xen: Remove legacy references to explicitly per-cpu perf counters.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Make all performance counter per-cpu, avoiding the need to update
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:35:37 +0000 (16:35 +0100)]
xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.

Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.

While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).

On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.

Also, a few counters are being added.

IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvm: Remove access to QEMU monitor in VNC server
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:23:52 +0000 (16:23 +0100)]
hvm: Remove access to QEMU monitor in VNC server

This fixes a RHEL5 errata and CVE-2007-0998.

The monitor is still accessible in debug builds of ioemu (debug=y).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agolinux: Fix for missing response to XS_UNWATCH request.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:19:25 +0000 (16:19 +0100)]
linux: Fix for missing response to XS_UNWATCH request.
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFurther shrink the big-lock window.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:03:30 +0000 (16:03 +0100)]
Further shrink the big-lock window.

A few more adjustments to when the 'big' lock is taken/dropped.

Also, fix a case where the foreign domain setting may not get properly
cleared at the end of a hypercall (in case of an early error).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd WARN() and generic WARN_ON().
kfraser@localhost.localdomain [Tue, 27 Mar 2007 14:53:45 +0000 (15:53 +0100)]
Add WARN() and generic WARN_ON().

Based on a patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoIn order to allow building as non-root with a non-default CC (which
kfraser@localhost.localdomain [Tue, 27 Mar 2007 13:50:17 +0000 (14:50 +0100)]
In order to allow building as non-root with a non-default CC (which
root may not have access to through its $PATH), defer the generation
of an error until CC is actually needed.

Original patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDo not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
Ewan Mellor [Tue, 27 Mar 2007 13:34:34 +0000 (14:34 +0100)]
Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix some fields so that they are declared as read-only (always should have
Ewan Mellor [Tue, 27 Mar 2007 13:22:29 +0000 (14:22 +0100)]
Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tom Wilkie [Tue, 27 Mar 2007 13:02:17 +0000 (14:02 +0100)]
Merge

19 years agoFix typo in VIF_metrics_methods in XenAPI
Tom Wilkie [Tue, 27 Mar 2007 12:45:30 +0000 (13:45 +0100)]
Fix typo in VIF_metrics_methods in XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agolinux: Fix a compiler warning (unused local variable).
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:54:16 +0000 (11:54 +0100)]
linux: Fix a compiler warning (unused local variable).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvm svm: Rename svm_do_vmmcall_reset_to_realmode() and some small
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:53:07 +0000 (11:53 +0100)]
hvm svm: Rename svm_do_vmmcall_reset_to_realmode() and some small
cleanups.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
19 years ago[ACM] Check offset to be within the buffer's size
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:50:43 +0000 (11:50 +0100)]
[ACM] Check offset to be within the buffer's size
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix time reporting to guest.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:47:20 +0000 (11:47 +0100)]
Fix time reporting to guest.

The recent change to guest time handling dropped a call to
update_vcpu_system_time(), leading to time-went-backwards messages and
guest hangs (the latter were observed only in 2.6.21-rc4 and only when
no serial console was in use).

Debugging the issue also revealed that some commented out debug
printk-s in x86's time handling code didn't compile under x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix the default for the is_a_template flag.
Ewan Mellor [Tue, 27 Mar 2007 10:31:25 +0000 (11:31 +0100)]
Fix the default for the is_a_template flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix push/jmp/call <reg/mem> to check whether the operand is register
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:20:55 +0000 (11:20 +0100)]
Fix push/jmp/call <reg/mem> to check whether the operand is register
or memory when expanding the operand to 8 bytes on x86/64.

Based on original patch by Dexuan Cui <dexuan.cui@intel.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix xm network-attach via XenAPI re: paused domain state
Tom Wilkie [Mon, 26 Mar 2007 16:22:45 +0000 (17:22 +0100)]
Fix xm network-attach via XenAPI re: paused domain state

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 16:10:31 +0000 (10:10 -0600)]
merge with xen-unstable.hg

19 years agoFix up xm vcpu-pin via XenAPI, change types of new VM Metrics feilds
Tom Wilkie [Mon, 26 Mar 2007 15:48:20 +0000 (16:48 +0100)]
Fix up xm vcpu-pin via XenAPI, change types of new VM Metrics feilds

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoMake 06_destroy_dom0_neg pass with xm via XenAPI.
Tom Wilkie [Mon, 26 Mar 2007 15:18:16 +0000 (16:18 +0100)]
Make 06_destroy_dom0_neg pass with xm via XenAPI.

Make check case insensitive.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years ago[IA64] Remove P2M workaround
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 15:17:25 +0000 (09:17 -0600)]
[IA64] Remove P2M workaround

The ia64 p2m semantic is now fixed. remove unnecessary work around patch.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Make P2M semantics match x86
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 15:15:17 +0000 (09:15 -0600)]
[IA64] Make P2M semantics match x86

So far the ia64 p2m has the semantic similar to
(the x86 p2m) + (page reference count).
But the differece from the x86 p2m have caused the breakage and work around.
This patch make the ia64 p2m semantic same as x86 to solve it.
- get_page() only for grant table page mapping and foreign domain page
  mapping.
- put_page() only for those pages.
- guest_physmap_remove_page() doesn't touch PGC_allocated bit.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoFix xm info etc since changes to Session in XenAPI
Tom Wilkie [Mon, 26 Mar 2007 15:04:24 +0000 (16:04 +0100)]
Fix xm info etc since changes to Session in XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoAdd option to xm create to skip DTD checks.
Tom Wilkie [Mon, 26 Mar 2007 14:09:24 +0000 (15:09 +0100)]
Add option to xm create to skip DTD checks.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoAdd autodetect to xm create for xml files
Tom Wilkie [Mon, 26 Mar 2007 13:57:12 +0000 (14:57 +0100)]
Add autodetect to xm create for xml files

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoConvert XendPIFMetrics into an autoplug class.
Ewan Mellor [Mon, 26 Mar 2007 23:54:05 +0000 (00:54 +0100)]
Convert XendPIFMetrics into an autoplug class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoConvert XendVMMetrics into an autoplug class. Tidy up our destroy methods
Ewan Mellor [Mon, 26 Mar 2007 23:48:46 +0000 (00:48 +0100)]
Convert XendVMMetrics into an autoplug class.  Tidy up our destroy methods
on the way -- metrics classes cannot be destroyed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded network.other_config map. To make this easier, add a new automatic
Ewan Mellor [Mon, 26 Mar 2007 23:19:20 +0000 (00:19 +0100)]
Added network.other_config map.  To make this easier, add a new automatic
plumbing facility from the XendNetwork class into XendAPI (credit to Tom
Wilkie for the idea).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTrivial tidyup.
Ewan Mellor [Mon, 26 Mar 2007 23:15:07 +0000 (00:15 +0100)]
Trivial tidyup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThis patch replaces tab with 4 whitespaces in xensec_gen/main.py.
Ewan Mellor [Mon, 26 Mar 2007 13:10:19 +0000 (14:10 +0100)]
This patch replaces tab with 4 whitespaces in xensec_gen/main.py.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoDon't set memory_dynamic_max when xm mem-set is called. Save the VM
Ewan Mellor [Mon, 26 Mar 2007 13:09:36 +0000 (14:09 +0100)]
Don't set memory_dynamic_max when xm mem-set is called.  Save the VM
configuration unconditionally when either the max or the target memory values
are set.

Thanks to Masaki Kanno for pointing out the first problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix xm mem-set on non-running domains. Closes bug #934.
Ewan Mellor [Mon, 26 Mar 2007 12:59:36 +0000 (13:59 +0100)]
Fix xm mem-set on non-running domains.  Closes bug #934.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoIgnore .pc (quilt patch queues).
Ewan Mellor [Mon, 26 Mar 2007 12:57:43 +0000 (13:57 +0100)]
Ignore .pc (quilt patch queues).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the xm mem-max command. Closes bug #933.
Ewan Mellor [Mon, 26 Mar 2007 12:50:33 +0000 (13:50 +0100)]
Fix the xm mem-max command.  Closes bug #933.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoMake 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI
Tom Wilkie [Mon, 26 Mar 2007 12:46:07 +0000 (13:46 +0100)]
Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoFix vbd_create etc, add devices to paused domains
Tom Wilkie [Mon, 26 Mar 2007 12:29:27 +0000 (13:29 +0100)]
Fix vbd_create etc, add devices to paused domains

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years ago[HVM] Fix comments
Tim Deegan [Mon, 26 Mar 2007 09:16:04 +0000 (09:16 +0000)]
[HVM] Fix comments
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Intercept ACPI pm-timer registers
Tim Deegan [Mon, 26 Mar 2007 09:13:03 +0000 (09:13 +0000)]
[HVM] Intercept ACPI pm-timer registers
Bring the PM1a_STS and PM1a_EN registers into Xen and use them to deliver
SCI to the guest before it sees the MSB of the pm-timer change.
Also correct some of the semantics of the registers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix VM.resume/suspend docs.
Ewan Mellor [Mon, 26 Mar 2007 00:13:16 +0000 (01:13 +0100)]
Fix VM.resume/suspend docs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.
Ewan Mellor [Mon, 26 Mar 2007 00:02:18 +0000 (01:02 +0100)]
Mark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoCreate the new VM with the default crash behaviour set.
Ewan Mellor [Sun, 25 Mar 2007 23:40:34 +0000 (00:40 +0100)]
Create the new VM with the default crash behaviour set.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace tabs with spaces.
Ewan Mellor [Sun, 25 Mar 2007 23:30:10 +0000 (00:30 +0100)]
Replace tabs with spaces.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded I/O debugging mode.
Ewan Mellor [Sun, 25 Mar 2007 23:17:17 +0000 (00:17 +0100)]
Added I/O debugging mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix memory values -- they should be in bytes.
Ewan Mellor [Sun, 25 Mar 2007 23:16:40 +0000 (00:16 +0100)]
Fix memory values -- they should be in bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy up use of stdout vs stderr.
Ewan Mellor [Sun, 25 Mar 2007 23:12:19 +0000 (00:12 +0100)]
Tidy up use of stdout vs stderr.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the VM.is_a_template flag for domain 0.
Ewan Mellor [Sun, 25 Mar 2007 23:09:00 +0000 (00:09 +0100)]
Fix the VM.is_a_template flag for domain 0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement session.last_active, session.this_host, session.get_record,
Ewan Mellor [Sun, 25 Mar 2007 23:08:13 +0000 (00:08 +0100)]
Implement session.last_active, session.this_host, session.get_record,
session.get_uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded C bindings and docs for recent addition VM.set_VCPUs_number_live.
Ewan Mellor [Sun, 25 Mar 2007 21:17:30 +0000 (22:17 +0100)]
Added C bindings and docs for recent addition VM.set_VCPUs_number_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove stillborn DTD section, in favour of an upcoming new doc for the xm
Ewan Mellor [Sun, 25 Mar 2007 15:47:18 +0000 (16:47 +0100)]
Remove stillborn DTD section, in favour of an upcoming new doc for the xm
create DTD.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoWorkaround buggy GCCs wrt strftime.
Ewan Mellor [Fri, 23 Mar 2007 17:51:24 +0000 (17:51 +0000)]
Workaround buggy GCCs wrt strftime.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't use the client-side shortcut for get_uuid calls -- we need to keep
Ewan Mellor [Fri, 23 Mar 2007 17:50:18 +0000 (17:50 +0000)]
Don't use the client-side shortcut for get_uuid calls -- we need to keep
handles and UUIDs conceptually separate.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoIgnore exceptions in the get_all_methods call.
Ewan Mellor [Fri, 23 Mar 2007 17:42:08 +0000 (17:42 +0000)]
Ignore exceptions in the get_all_methods call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.
Ewan Mellor [Fri, 23 Mar 2007 17:14:22 +0000 (17:14 +0000)]
Add VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoRelease the domains_lock properly when get_dev_property_by_uuid fails.
Ewan Mellor [Fri, 23 Mar 2007 16:54:34 +0000 (16:54 +0000)]
Release the domains_lock properly when get_dev_property_by_uuid fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix rebooting domains problem with new internal memory storage
Tom Wilkie [Fri, 23 Mar 2007 15:10:46 +0000 (15:10 +0000)]
Fix rebooting domains problem with new internal memory storage

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

19 years agoAdd a last_updated field to every metrics class.
Ewan Mellor [Fri, 23 Mar 2007 13:27:29 +0000 (13:27 +0000)]
Add a last_updated field to every metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement parsing of datetimes.
Ewan Mellor [Fri, 23 Mar 2007 13:26:08 +0000 (13:26 +0000)]
Implement parsing of datetimes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReturn an error when a schedule-setting call fails.
Ewan Mellor [Fri, 23 Mar 2007 11:52:09 +0000 (11:52 +0000)]
Return an error when a schedule-setting call fails.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoSince CPP is being used with CFLAGS, it should be in lock-step with CC,
Ewan Mellor [Fri, 23 Mar 2007 11:32:32 +0000 (11:32 +0000)]
Since CPP is being used with CFLAGS, it should be in lock-step with CC,
to avoid having to specify both CC and CPP for the build.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix typos.
Ewan Mellor [Fri, 23 Mar 2007 11:12:25 +0000 (11:12 +0000)]
Fix typos.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace tabs with spaces.
Ewan Mellor [Fri, 23 Mar 2007 11:11:41 +0000 (11:11 +0000)]
Replace tabs with spaces.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix state in xm list; add state to VM_metrics class.
Ewan Mellor [Fri, 23 Mar 2007 11:04:51 +0000 (11:04 +0000)]
Fix state in xm list; add state to VM_metrics class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>